package com.hongxun.design.mytools;

import android.widget.Button;
import android.widget.TextView;

import com.hongxun.design.MyApp;

/**
 * Created by zerdoor_pc on 2016/4/25.
 * 引用字体类
 */
public class SetTypeface {
    public static void set(TextView textView, CharSequence text) {
        textView.setTypeface(MyApp.font);
        textView.setText(text);
    }
    public static void setAppend(TextView textView, CharSequence text) {
        textView.setTypeface(MyApp.font);
        textView.append(text);
    }

    public static void append(TextView textView, CharSequence text) {
        textView.append(text);
    }

    public static void set(Button textView, CharSequence text) {
        textView.setTypeface(MyApp.font);
        textView.setText(text);
    }
}
